home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / Snippets / QuickDraw / TE Over Background / TESample.r < prev    next >
Encoding:
Text File  |  1993-01-18  |  3.0 KB  |  86 lines  |  [TEXT/MPS ]

  1. /*------------------------------------------------------------------------------
  2. #
  3. #    Apple Macintosh Developer Technical Support
  4. #
  5. #    MultiFinder-Aware TextEdit Sample Application
  6. #
  7. #    TESample
  8. #
  9. #    TESample.r    -    Rez Source
  10. #
  11. #    Copyright © 1989 Apple Computer, Inc.
  12. #    All rights reserved.
  13. #
  14. #    Versions:    
  15. #                1.00                08/88
  16. #                1.01                11/88
  17. #                1.02                04/89
  18. #                1.03                06/89
  19. #
  20. #    Components:
  21. #                TESample.p            June 1, 1989
  22. #                TESample.c            June 1, 1989
  23. #                TESampleGlue.a        June 1, 1989    -MPW only-
  24. #                TESample.r            June 1, 1989
  25. #                TESample.h            June 1, 1989
  26. #                PTESample.make        June 1, 1989    -MPW only-
  27. #                CTESample.make        June 1, 1989    -MPW only-
  28. #                TESampleGlue.s        June 1, 1989    -A/UX only-
  29. #                TESampleAUX.r        June 1, 1989    -A/UX only-
  30. #                Makefile            June 1, 1989    -A/UX only-
  31. #
  32. #    TESample is an example application that demonstrates how 
  33. #    to initialize the commonly used toolbox managers, operate 
  34. #    successfully under MultiFinder, handle desk accessories and 
  35. #    create, grow, and zoom windows. The fundamental TextEdit 
  36. #    toolbox calls and TextEdit autoscroll are demonstrated. It 
  37. #    also shows how to create and maintain scrollbar controls.
  38. #
  39. #    It does not by any means demonstrate all the techniques you 
  40. #    need for a large application. In particular, Sample does not 
  41. #    cover exception handling, multiple windows/documents, 
  42. #    sophisticated memory management, printing, or undo. All of 
  43. #    these are vital parts of a normal full-sized application.
  44. #
  45. #    This application is an example of the form of a Macintosh 
  46. #    application; it is NOT a template. It is NOT intended to be 
  47. #    used as a foundation for the next world-class, best-selling, 
  48. #    600K application. A stick figure drawing of the human body may 
  49. #    be a good example of the form for a painting, but that does not 
  50. #    mean it should be used as the basis for the next Mona Lisa.
  51. #
  52. #    We recommend that you review this program or Sample before 
  53. #    beginning a new application. Sample is a simple app. which doesn’t 
  54. #    use TextEdit or the Control Manager.
  55. #
  56. ------------------------------------------------------------------------------*/
  57.  
  58. include "TESample.π.rsrc";
  59.  
  60. #include "types.r"
  61.  
  62.  
  63. /* here is the quintessential MultiFinder friendliness device, the SIZE resource */
  64.  
  65. resource 'SIZE' (-1) {
  66.     dontSaveScreen,
  67.     acceptSuspendResumeEvents,
  68.     enableOptionSwitch,
  69.     canBackground,                /* we can background; we don't currently, but our sleep value */
  70.                                 /* guarantees we don't hog the Mac while we are in the background */
  71.     multiFinderAware,            /* this says we do our own activate/deactivate; don't fake us out */
  72.     backgroundAndForeground,    /* this is definitely not a background-only application! */
  73.     dontGetFrontClicks,            /* change this is if you want "do first click" behavior like the Finder */
  74.     ignoreChildDiedEvents,        /* essentially, I'm not a debugger (sub-launching) */
  75.     not32BitCompatible,            /* this app should not be run in 32-bit address space */
  76.     reserved,
  77.     reserved,
  78.     reserved,
  79.     reserved,
  80.     reserved,
  81.     reserved,
  82.     reserved,
  83.     384 * 1024,
  84.     384 * 1024    
  85. };
  86.